import request from '@/request'

export function selectComment(formdata) {
    return request({
      url: '/comment/select',
      method: 'post',
      data: formdata
    })
  }

  export function addComment(formdata) {
    return request({
      url: '/comment/insert',
      method: 'post',
      data: formdata
    })
  }

  export function updateComment(formdata) {
    return request({
      url: '/comment/update',
      method: 'post',
      data: formdata
    })
  }

  export function deleteComment(id) {
    return request({
      url: `/comment/delete/${id}`,
      method: 'post',
    })
  }